package com.ibeeking.found.common.enums.member;

/**
 * @Author ibeeking
 * @Date: 2021-01-05 19:15
 * @Description: 等级权益enum
 */
public enum MemberBenefitBasicEnum {
    BIRTHDAY(1);
    private Integer value;

    MemberBenefitBasicEnum(int value) {
        this.value = value;
    }


    public Integer getValue() {
        return value;
    }

    public static MemberBenefitBasicEnum getEnum(Integer value) {
        for (MemberBenefitBasicEnum enumObj : values()) {
            if (enumObj.getValue().equals(value)) {
                return enumObj;
            }
        }
        return null;
    }
}
